/**
 * 分类模块
 */
import { Layout } from '../constants'

const categoryRoute = {
  path: '/category',
  name: 'Category',
  component: Layout,
  meta: {},
  children: [
    /** 一级分类跳转页面 */
    {
      path: '/category/index/:id',
      name: 'CategoryPage',
      component: () => import('@/views/category/index.vue'),
      meta: {}
    },
    /** 二级分类跳转页面 */
    {
      path: '/category/sub/:id',
      name: 'CategorySub',
      component: () => import('@/views/category/sub.vue'),
      meta: {}
    }
  ]
}

export default categoryRoute
